import request from '@/utils/request'

// 获取列表
export function getlist(params) {
  return request({
    url: '/exhibition/info/getShop',
    method: 'get',
    params
  })
}
// 根据展会号查询
export function stand_infoid(data) {
  return request({
    url: '/exhibition/stand_info/list',
    method: 'get',
    params: {
      standNum: data
    }
  })
}
// 查询购物车列表
export function getshopcar(userId, exhibitionId, standId) {
  return request({
    url: '/exhibition/item/listForWeb',
    method: 'get',
    params: {
      userId: userId,
      exhibitionId: exhibitionId,
      standId: standId,
    }
  })
}
// 新增购物车
export function addahopcar(data) {
  return request({
    url: '/exhibition/item',
    method: 'POST',
    data
  })
}
// 删除购物车
export function delshopcar(id) {
  return request({
    url: '/exhibition/item/' + id,
    method: 'delete',
  })
}
// 新增订单
export function saveOrder(data) {
  return request({
    url: '/exhibition/order/saveOrder',
    method: 'POST',
    data
  })
}
// 获取银行信息
export function bankInfo(id) {
  return request({
    url: '/exhibition/bankInfo/list',
    method: 'get',
    params:{
      exhibitionId:id
    }
  })
}
// 获取商城目录
export function getCategory() {
  return request({
    url: '/exhibition/info/getCategory',
    method: 'get',
  })
}
// 核对订单信息数据
export function confirmOrderItem(data) {
  return request({
    url: '/exhibition/order/order/confirmOrderItem',
    method: 'post',
    data
  })
}